#pragma once
#include "Socket.h"
#include "EventLoop.h"
#include <string>
#include"Channel.h"
#include"InetAddress.h"
#include"Epoll.h"
#include"Acceptor.h"

// TcpServer网路服务类
class TcpServer
{
public:
    TcpServer(std::string& ip,uint16_t& port);
    ~TcpServer();

    void start();

private:
    EventLoop loop_;
    Acceptor* acceptor_;
};
